<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="row">
        <div class="col-md-9 col-sm-12">
            <div class="panel panel-default panel-intro">
                <div class="panel-heading">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#basic" data-toggle="tab">基础信息</a></li>
                        <li><a href="#view" data-toggle="tab">视图设置</a></li>
                        <li><a href="#seo" data-toggle="tab">搜索优化</a></li>
                    </ul>
                </div>
                <div class="panel-body">
                    <div id="myTabContent" class="tab-content">
                        <div class="tab-pane fade active in" id='basic'>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                   <select id="c-pid" data-rule="required" class="form-control selectpicker" name="row[pid]">
                                        {foreach name="parentList" item="vo"}
                                        <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo.name}</option>
                                        {/foreach}
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                                
                                    <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                                        {foreach name="typeList" item="vo"}
                                            <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
                                        {/foreach}
                                    </select>

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Models_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-models_id" data-rule="required" data-source="prl/models/index" class="form-control selectpage" name="row[models_id]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('En_name')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-en_name" class="form-control" name="row[en_name]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Href')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-href" data-rule="required" class="form-control" name="row[href]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <div class="radio">
                                    {foreach name="statusList" item="vo"}
                                    <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
                                    {/foreach}
                                    </div>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Display')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                                
                                    <select  id="c-display" data-rule="required" class="form-control selectpicker" name="row[display]">
                                        {foreach name="displayList" item="vo"}
                                            <option value="{$key}" {in name="key" value="1"}selected{/in}>{$vo}</option>
                                        {/foreach}
                                    </select>

                                </div>
                            </div>
                            
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Jump_child')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                                
                                    <select  id="c-jump_child" data-rule="required" class="form-control selectpicker" name="row[jump_child]">
                                        {foreach name="jumpChildList" item="vo"}
                                            <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                                        {/foreach}
                                    </select>

                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade" id="view">
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Pagesize')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-pagesize" data-rule="required" class="form-control" name="row[pagesize]" type="number" value="10">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Home_view_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-home_view_id" data-rule="required" data-source="prl/views/index?type=0" class="form-control selectpage" name="row[home_view_id]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Channel_view_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-channel_view_id" data-rule="required" data-source="prl/views/index?type=1" class="form-control selectpage" name="row[channel_view_id]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('List_view_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-list_view_id" data-rule="required" data-source="prl/views/index?type=2" class="form-control selectpage" name="row[list_view_id]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Info_view_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-info_view_id" data-rule="required" data-source="prl/views/index?type=3" class="form-control selectpage" name="row[info_view_id]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Page_view_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-page_view_id" data-rule="required" data-source="prl/views/index?type=4" class="form-control selectpage" name="row[page_view_id]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Form_view_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-form_view_id" data-rule="required" data-source="prl/views/index?type=5" class="form-control selectpage" name="row[form_view_id]" type="text" value="">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Form_id')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-form_id" data-rule="required" data-source="prl/forms/index" class="form-control selectpage" name="row[form_id]" type="text" value="">
                                </div>
                            </div>
                        </div>

                        <div class="tab-pane fade" id="seo">
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Seo_title')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-seo_title" class="form-control" name="row[seo_title]" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Seo_keywords')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <input id="c-seo_keywords" class="form-control" name="row[seo_keywords]" type="text">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="control-label col-xs-12 col-sm-2">{:__('Seo_description')}:</label>
                                <div class="col-xs-12 col-sm-8">
                                    <textarea id="c-seo_description" class="form-control " rows="5" name="row[seo_description]" cols="50"></textarea>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
